﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace VideoCache.Server.MVCWeb.Models
{
    public class CreateNetbarModel
    {
        [Display(Name = "网吧编号")]
        public int Id { get; set; }

        [Display(Name = "网吧名称")]
        [Required(ErrorMessage = "请输入网吧名称")]
        public string Name { get; set; }

        [Display(Name = "密码")]
        [Required(ErrorMessage = "请输入密码")]
        [DataType(DataType.Password)]
        public string Password { get; set; }

        [Display(Name = "确认密码")]
        [Required(ErrorMessage = "请输入确认密码")]
        [DataType(DataType.Password)]
        [Compare("Password")]
        public string ConfirmPassword { get; set; }

        [Display(Name = "所在省份")]
        [Required(ErrorMessage = "请选择所在省份或直辖市")]
        public string Province { get; set; }

        [Display(Name = "所在城市")]
        [Required(ErrorMessage = "请选择所在城市")]
        public string City { get; set; }

        [Display(Name = "所在区县")]
        public string District { get; set; }

        [Display(Name = "联系人")]
        public string ContactPerson { get; set; }

        [Display(Name = "联系电话")]
        public string Telephone { get; set; }

        [Display(Name = "手机号码")]
        public string MobilePhone { get; set; }
    }
}